package com.example.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author zk
 * @description: test
 * @date 2019-10-21 10:27
 */
@Controller
public class ThymeleafController{
    @RequestMapping("showSomething")
    public ModelAndView showSomething(ModelAndView mav){
        mav.addObject("something","调皮一下");
        mav.setViewName("showSomething");
        return mav;
    }
}
